<div class="form" style="background:url('<?php echo Yii::app()->request->baseUrl; ?>/themes/hachimaki/imagens/bg5.png') repeat scroll top center transparent; height:auto; padding-top:55px; border: 3px solid #CCCCCC;">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tbl-user-form',
	'enableAjaxValidation'=>true,
        'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<p class="note">Campos com <span class="required">*</span> são obrigatórios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'nome'); ?>
		<?php echo $form->textField($model,'nome',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'nome'); ?>
	</div>        
	<!--div class="row">
		<?php echo $form->labelEx($model,'salt'); ?>
		<?php echo $form->textField($model,'salt',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'salt'); ?>
	</div-->
	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>
	<div class="row" style="text-align:left; width:370px; padding:0; margin:0;">
		<?php  echo $form->labelEx($model,'classe'); ?>
		<?php echo $form->dropDownList($model,'classe', cad_parceiros::loadTableParceiro()); ?>
		<?php  echo $form->error($model,'classe'); ?>
	</div>
	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'profile'); ?>
		<?php echo $form->textArea($model,'profile',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'profile'); ?>
	</div>

	<div class="row" style="text-align:right; width:305px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'img_detail'); ?>
		<?php echo $form->textField($model,'img_detail',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'img_detail'); ?>
	</div>
	<div class="row" style="text-align:right; width:158px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'img'); ?>
		<?php echo CHtml::activeFileField($model,'img',array('size'=>20,'maxlength'=>200));?>
		<?php echo $form->error($model,'img'); ?>
	</div>
	<div class="row" style="text-align:right; width:370px; padding:0; margin:0;">
		<?php echo $form->labelEx($model,'party'); ?>
		<?php  echo $form->dropDownList($model,'party',cad_grupos::loadTableGrupos()); ?>
		<?php echo $form->error($model,'party'); ?>
	</div>        
	
      <div class="row buttons" style="text-align:center; margin-top:12px; clear:both; padding-top:7px;">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Salvar' : 'Salvar'); ?>
      </div>
        
<?php $this->endWidget(); ?>

</div><!-- form -->